package com.ys.entity.purchase;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_InvoiceRegistItem", catalog="Id")
public class TcgInvoiceRegistItem extends BaseEntity<TcgInvoiceRegistItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="InvoiceOffsetItemId", nameJava="invoiceOffsetItemId", typeDataBase="bigint")
	private Long invoiceOffsetItemId;
	@YsField(nameDataBase="SubSinglePriceNoTax", nameJava="subSinglePriceNoTax", typeDataBase="decimal")
	private BigDecimal subSinglePriceNoTax;
	@YsField(nameDataBase="SubTotalPriceNoTax", nameJava="subTotalPriceNoTax", typeDataBase="decimal")
	private BigDecimal subTotalPriceNoTax;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgInvoiceRegistItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TcgInvoiceRegistItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public Long getInvoiceOffsetItemId() {
		return invoiceOffsetItemId;
	}
	public TcgInvoiceRegistItem setInvoiceOffsetItemId(Long invoiceOffsetItemId) {
		this.invoiceOffsetItemId = invoiceOffsetItemId;
		return this;
	}
	public BigDecimal getSubSinglePriceNoTax() {
		return subSinglePriceNoTax;
	}
	public TcgInvoiceRegistItem setSubSinglePriceNoTax(BigDecimal subSinglePriceNoTax) {
		this.subSinglePriceNoTax = subSinglePriceNoTax;
		return this;
	}
	public BigDecimal getSubTotalPriceNoTax() {
		return subTotalPriceNoTax;
	}
	public TcgInvoiceRegistItem setSubTotalPriceNoTax(BigDecimal subTotalPriceNoTax) {
		this.subTotalPriceNoTax = subTotalPriceNoTax;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgInvoiceRegistItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgInvoiceRegistItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgInvoiceRegistItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgInvoiceRegistItem tcgInvoiceRegistItem(
		String pbid,
		Long invoiceOffsetItemId,
		BigDecimal subSinglePriceNoTax,
		BigDecimal subTotalPriceNoTax,
		Integer status
			) {
		TcgInvoiceRegistItem entity = new TcgInvoiceRegistItem();
		entity.setPbid(pbid);
		entity.setInvoiceOffsetItemId(invoiceOffsetItemId);
		entity.setSubSinglePriceNoTax(subSinglePriceNoTax);
		entity.setSubTotalPriceNoTax(subTotalPriceNoTax);
		entity.setStatus(status);
		return entity;
	}
}